package com.shsxt.vo;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.codehaus.jackson.map.module.SimpleAbstractTypeResolver;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.shsxt.model.BaseQuery;

/**
 * @author lxc2
 *
 */
public class TongjiQuery extends BaseQuery {
	private String type;
	private String message;
	private String count;
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private String time;
	private String id;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public TongjiQuery(String type, String message, String count, String time, String id) {
		super();
		this.type = type;
		this.message = message;
		this.count = count;
		this.time = time;
		this.id = id;
	}
	@Override
	public String toString() {
		return "TongjiQuery [type=" + type + ", message=" + message + ", count=" + count + ", time=" + time + "]";
	}
	public TongjiQuery() {
		super();
		// TODO Auto-generated constructor stub
	}
	public TongjiQuery(String type, String message, String count, String time) {
		super();
		this.type = type;
		this.message = message;
		this.count = count;
		this.time = time;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getCount() {
		return count;
	}
	public void setCount(String count) {
		this.count = count;
	}
	public String getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time);
	}
	
	
}
